package 数学;
//二维数组的演示
public class Example13 {
     public static void main(String[] args) {
		int[][] arr=new int[3][];
		arr[0] = new int[]{11,12};
		arr[1] = new int[]{21,54,76}; 
		arr[2] = new int[]{54,65,21};
		int sum=0;
		for(int i=0;i<arr.length;i++ ){
			int groupSum=0;
			for(int j=0;j<arr[i].length;j++){
				groupSum=groupSum+arr[i][j];
			}
			sum=sum+groupSum;
			System.out.println("第"+i+1+"小组销售额为："+groupSum+"万元.");
	   }
		System.out.println("总销售额为："+sum+"万元");
   }
}
